import { Typed, TypedArray } from '@quick-toolkit/class-transformer';

export class SignResponseVo {
  @Typed(Boolean, {
    description: '是否为超级管理员',
  })
  public tenantAdministrator: boolean;

  @Typed(String, {
    description: '访问token',
  })
  public accessToken: string;

  @Typed(String, {
    description: '租户Id',
  })
  public tenantId: string;

  @Typed(String, {
    description: '账户ID',
  })
  public accountId: string;

  @TypedArray(String, {
    description: '权限列表',
  })
  public authorities: string[];

  @Typed(String, {
    description: '账户名称',
  })
  public name: string;

  @Typed(String, {
    description: '用户名称',
  })
  public username: string;

  @Typed(String, {
    description: 'UUID',
  })
  public uuid: string;
}
